<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cutex: C:/Users/SHold/Documents/Projekte/libs/cutex/include/qxdoubleedit.h Quellcode</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">cutex
   </div>
   <div id="projectbrief">cute Qt extensions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Erzeugt von Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Suchen','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Suchen');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qxdoubleedit_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qxdoubleedit.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***********************************************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">** Copyright (C) 2016-2021 Partsoft UG (haftungsbeschränkt)</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Contact: https://www.partsoft.de/index.php/kontakt</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** This file is part of cutex</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">** cutex is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">** License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** version.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** cutex is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">** You should have received a copy of the GNU Lesser General Public License along with cutex. If not, see</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">** http://www.gnu.org/licenses.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">**</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">***********************************************************************************************************************/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef QXDOUBLEEDIT_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define QXDOUBLEEDIT_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;cutex.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span>cutex {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classcutex_1_1_qx_double_edit.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcutex_1_1_qx_double_edit.html">QxDoubleEdit</a> : <span class="keyword">public</span> QLineEdit</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    Q_PROPERTY(<span class="keywordtype">int</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ada1e7d377fbf70a86b9fa13f898a696f">decimals</a> READ <a class="code" href="classcutex_1_1_qx_double_edit.html#ada1e7d377fbf70a86b9fa13f898a696f">decimals</a> WRITE <a class="code" href="classcutex_1_1_qx_double_edit.html#a05aa0e060ba36edaa6cd1a8591fa4185">setDecimals</a>)</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    Q_PROPERTY(<span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#adb438ba6505c03278a5dd6b415bbf242">minimum</a> READ <a class="code" href="classcutex_1_1_qx_double_edit.html#adb438ba6505c03278a5dd6b415bbf242">minimum</a> WRITE <a class="code" href="classcutex_1_1_qx_double_edit.html#aefb7e23497aaa65e91763ef44e6715d5">setMinimum</a>)</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    Q_PROPERTY(<span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#a0eb0920753a004fe6c724143f215a10c">maximum</a> READ <a class="code" href="classcutex_1_1_qx_double_edit.html#a0eb0920753a004fe6c724143f215a10c">maximum</a> WRITE <a class="code" href="classcutex_1_1_qx_double_edit.html#ac1889ec4514294d4deef6fd71c6e099a">setMaximum</a>)</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    Q_PROPERTY(<span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ae3f3c80a5d2ea9e84d2bc951c8066187">value</a> READ <a class="code" href="classcutex_1_1_qx_double_edit.html#ae3f3c80a5d2ea9e84d2bc951c8066187">value</a> WRITE <a class="code" href="classcutex_1_1_qx_double_edit.html#aebc5f25a9d72d10892438943103736b2">setValue</a>)</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="classcutex_1_1_qx_double_edit.html#aa86af4b4dd1003b5c48d2b73b229918b">QxDoubleEdit</a>(QWidget *parent = <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ada1e7d377fbf70a86b9fa13f898a696f">decimals</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#a05aa0e060ba36edaa6cd1a8591fa4185">setDecimals</a>(<span class="keywordtype">int</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ada1e7d377fbf70a86b9fa13f898a696f">decimals</a>);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#adb438ba6505c03278a5dd6b415bbf242">minimum</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#aefb7e23497aaa65e91763ef44e6715d5">setMinimum</a>(<span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#adb438ba6505c03278a5dd6b415bbf242">minimum</a>);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#a0eb0920753a004fe6c724143f215a10c">maximum</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ac1889ec4514294d4deef6fd71c6e099a">setMaximum</a>(<span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#a0eb0920753a004fe6c724143f215a10c">maximum</a>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ae3f3c80a5d2ea9e84d2bc951c8066187">value</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#aebc5f25a9d72d10892438943103736b2">setValue</a>(<span class="keywordtype">double</span> <a class="code" href="classcutex_1_1_qx_double_edit.html#ae3f3c80a5d2ea9e84d2bc951c8066187">value</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> focusOutEvent(QFocusEvent *event);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    QDoubleValidator *m_validator;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">int</span> m_decimals;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordtype">double</span> m_minimum;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">double</span> m_maximum;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;};</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;} <span class="comment">// namespace</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// QXDOUBLEEDIT_H</span></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html">cutex::QxDoubleEdit</a></div><div class="ttdoc">Die Klasse QxDoubleEdit stellt ein Widget zur Eingabe von Gleitkommazahlen bereit.</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.h:37</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_a05aa0e060ba36edaa6cd1a8591fa4185"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#a05aa0e060ba36edaa6cd1a8591fa4185">cutex::QxDoubleEdit::setDecimals</a></div><div class="ttdeci">void setDecimals(int decimals)</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:56</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_a0eb0920753a004fe6c724143f215a10c"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#a0eb0920753a004fe6c724143f215a10c">cutex::QxDoubleEdit::maximum</a></div><div class="ttdeci">double maximum() const</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:93</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_aa86af4b4dd1003b5c48d2b73b229918b"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#aa86af4b4dd1003b5c48d2b73b229918b">cutex::QxDoubleEdit::QxDoubleEdit</a></div><div class="ttdeci">QxDoubleEdit(QWidget *parent=nullptr)</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:27</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_ac1889ec4514294d4deef6fd71c6e099a"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#ac1889ec4514294d4deef6fd71c6e099a">cutex::QxDoubleEdit::setMaximum</a></div><div class="ttdeci">void setMaximum(double maximum)</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:103</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_ada1e7d377fbf70a86b9fa13f898a696f"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#ada1e7d377fbf70a86b9fa13f898a696f">cutex::QxDoubleEdit::decimals</a></div><div class="ttdeci">int decimals() const</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:46</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_adb438ba6505c03278a5dd6b415bbf242"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#adb438ba6505c03278a5dd6b415bbf242">cutex::QxDoubleEdit::minimum</a></div><div class="ttdeci">double minimum() const</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:69</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_ae3f3c80a5d2ea9e84d2bc951c8066187"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#ae3f3c80a5d2ea9e84d2bc951c8066187">cutex::QxDoubleEdit::value</a></div><div class="ttdeci">double value() const</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:117</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_aebc5f25a9d72d10892438943103736b2"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#aebc5f25a9d72d10892438943103736b2">cutex::QxDoubleEdit::setValue</a></div><div class="ttdeci">void setValue(double value)</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:127</div></div>
<div class="ttc" id="aclasscutex_1_1_qx_double_edit_html_aefb7e23497aaa65e91763ef44e6715d5"><div class="ttname"><a href="classcutex_1_1_qx_double_edit.html#aefb7e23497aaa65e91763ef44e6715d5">cutex::QxDoubleEdit::setMinimum</a></div><div class="ttdeci">void setMinimum(double minimum)</div><div class="ttdef"><b>Definition:</b> qxdoubleedit.cpp:79</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><b>qxdoubleedit.h</b></li>
    <li class="footer">Erzeugt von <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
